﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DoiMatKhau.ascx.cs" Inherits="cbmobile.UserControl.DoiMatKhau" %>

<SCRIPT LANGUAGE=JAVASCRIPT type="text/javascript">
    function verify() {
        msg = "Bạn chắc chắn muốn đỗi Password không?";
        return confirm(msg);
    }
</SCRIPT>

<div class="sb-box">
    <div class="header">
        <h3>
            Đổi mật khẩu
        </h3>
    </div>
    <div class=" clear">
    </div>
    <div class="bcont">
        <div class="selection">
            <table>
                <tr>
                    <td class="setup01">
                        Mật khẩu mới:<span class="red">*</span>
                    </td>
                    <td>
                        <asp:TextBox CssClass="inputtext" ID="txt_newP" runat="server" 
                            TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;<asp:Label CssClass="red" ID="Lb_masseger_new" runat="server" Text=""></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txt_newP"
                                    SetFocusOnError="true" Display="None" ValidationGroup="REGISTER" runat="server"
                                    ErrorMessage='Please enter New password field'></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txt_newP"
                                    ValidationExpression="^[a-zA-Z0-9_]{6,20}$" runat="server" 
                            Display="None" SetFocusOnError="true"
                                    ValidationGroup="REGISTER" 
                            
                            ErrorMessage='Please type New password field again, can not use spectial char and length must in 6 to 20 character'></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="setup01">
                        Nhập lại mật khẩu:<span class="red">*</span>
                    </td>
                    <td>
                        <asp:TextBox CssClass="inputtext" ID="txt_confP" runat="server" 
                            TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;<asp:Label CssClass="red" ID="Lb_masseger_conf" runat="server" Text=""></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txt_confP"
                                    SetFocusOnError="true" Display="None" ValidationGroup="REGISTER" runat="server"
                                    ErrorMessage='Please enter Password Confirm field'></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txt_confP"
                                    ValidationExpression="^[a-zA-Z0-9_]{6,20}$" runat="server" 
                            Display="None" SetFocusOnError="true"
                                    ValidationGroup="REGISTER" 
                            
                            ErrorMessage='Please type password Confirm field again, can not use spectial char and length must in 6 to 20 character'></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="pdT10 C">
                        <asp:LinkButton CssClass="button" ID="btnSubmit" runat="server" 
                             OnClientClick="return verify()" 
                            ValidationGroup="REGISTER" onclick="btnSubmit_Click">
                            <span>Đổi mật khẩu</span>
                        </asp:LinkButton>

                        &nbsp;
                         <asp:LinkButton CssClass="button" ID="btnCancel" runat="server" onclick="btnCancel_Click" 
                            >
                            <span>Hủy</span>
                        </asp:LinkButton>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="pdT10 C">
                                <asp:ValidationSummary ShowSummary="false" ShowMessageBox="true" ValidationGroup="REGISTER"
                                    ID="ValidationSummary2" runat="server" />
                            </td>
                </tr>
            </table>
        </div>
    </div>
</div>
